package com.edu.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;



public class CommentDTO {

	private int commentId;
	private int userId;
	private String username;
	private String headimg;
    private Date created_at;
    private String content;
    private double score;
    private int likeNums;
    private int dislikeNums;
    private int voteType;
    
    
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getVoteType() {
		return voteType;
	}
	public void setVoteType(int voteType) {
		this.voteType = voteType;
	}
	public int getLikeNums() {
		return likeNums;
	}
	public void setLikeNums(int likeNums) {
		this.likeNums = likeNums;
	}
	public int getDislikeNums() {
		return dislikeNums;
	}
	public void setDislikeNums(int dislikeNums) {
		this.dislikeNums = dislikeNums;
	}
	public double getScore() {
		return score;
	}
	public void setScore(double score) {
		this.score = score;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getHeadimg() {
		return headimg;
	}
	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}
	public Date getCreated_at() {
		return created_at;
	}
	public void setCreated_at(Date created_at) {
		this.created_at = created_at;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public int getCommentId() {
		return commentId;
	}
	public void setCommentId(int commentId) {
		this.commentId = commentId;
	}
	public CommentDTO() {
		super();
	}
	public CommentDTO(int commentId, int userId, String username, String headimg, Date created_at, String content,
			double score, int likeNums, int dislikeNums, int voteType) {
		super();
		this.commentId = commentId;
		this.userId = userId;
		this.username = username;
		this.headimg = headimg;
		this.created_at = created_at;
		this.content = content;
		this.score = score;
		this.likeNums = likeNums;
		this.dislikeNums = dislikeNums;
		this.voteType = voteType;
	}
	@Override
	public String toString() {
		return "CommentDTO [commentId=" + commentId + ", userId=" + userId + ", username=" + username + ", headimg="
				+ headimg + ", created_at=" + created_at + ", content=" + content + ", score=" + score + ", likeNums="
				+ likeNums + ", dislikeNums=" + dislikeNums + ", voteType=" + voteType + "]";
	}

	
    
}
